package com.baidu.service;

import com.baidu.common.bean.Permission;
import com.baidu.common.bean.User;
import com.baidu.common.exception.WebException;
import com.baidu.service.interfases.BaseService;

import java.util.List;

/**
 * @Author: BSS
 * @create: 2020/8/21/8:52
 */
public interface PermissionService extends BaseService<Permission> {
    /**
     * 根据用户查询用户所有权限
     * @param user 用户信息
     * @return 用户所有权限
     * @throws WebException 抛出封装异常
     */
    List<Permission> queryPermissionByUser(User user) throws WebException;
}
